package com.blrs.service.system.impl;

import java.util.List;

import com.blrs.common.annotation.DataScope;
import com.blrs.domain.VehicleInfo;
import com.blrs.mapper.VehicleInfoMapper;
import com.blrs.service.system.IVehicleInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-06
 */
@Service
public class VehicleInfoServiceImpl implements IVehicleInfoService
{
    @Autowired
    private VehicleInfoMapper vehicleInfoMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param vehicleId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public VehicleInfo selectVehicleInfoByVehicleId(Long vehicleId)
    {
        return vehicleInfoMapper.selectVehicleInfoByVehicleId(vehicleId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param vehicleInfo 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    @DataScope(deptAlias = "t",userAlias = "t")
    public List<VehicleInfo> selectVehicleInfoList(VehicleInfo vehicleInfo)
    {
        return vehicleInfoMapper.selectVehicleInfoList(vehicleInfo);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param vehicleInfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertVehicleInfo(VehicleInfo vehicleInfo)
    {
        return vehicleInfoMapper.insertVehicleInfo(vehicleInfo);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param vehicleInfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateVehicleInfo(VehicleInfo vehicleInfo)
    {
        return vehicleInfoMapper.updateVehicleInfo(vehicleInfo);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param vehicleIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVehicleInfoByVehicleIds(Long[] vehicleIds)
    {
        return vehicleInfoMapper.deleteVehicleInfoByVehicleIds(vehicleIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param vehicleId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVehicleInfoByVehicleId(Long vehicleId)
    {
        return vehicleInfoMapper.deleteVehicleInfoByVehicleId(vehicleId);
    }
}
